# 现在有一个包含N个元素的元组或者是序列，怎样将它里面的值解压后同时赋值给N个变量

def demo_1():
    p = (4,5)
    x, y = p
    print("{}, {}".format(x, y))

def demo_2():
    data = ['ACME', 50, 91.1, (2012, 12, 21)]
    name, shares, price, date = data
    print("{}, {}, {}, {}".format(name, shares, price, date))
    _, shares, price, _ = data
    print("{}, {}".format(shares, price))


if __name__ == '__main__':
    demo_1()
    demo_2()